package com.qkl.xiatang.app.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qkl.xiatang.app.dto.pond.PondBackupDTO;
import com.qkl.xiatang.app.entity.pond.PondBatchEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PondBatchMapper extends BaseMapper<PondBatchEntity> {

    /**
     * 清塘
     * @param companyId
     * @param pondIdList
     * @return
     */
    int pondClean(@Param("companyId") String companyId, @Param("pondIdList") List<String> pondIdList);

    /**
     * 清塘组
     * @param companyId
     * @param pondIdList
     * @return
     */
    int pondGroupClean(@Param("companyId") String companyId, @Param("pondIdList") List<String> pondIdList);

    /**
     * 备份 feed_alloc_qty 表
     * @param params
     */
    void backupFeedAllocQty(PondBackupDTO params);
    void deleteFeedAllocQty(PondBackupDTO params);

    /**
     * 备份 eed_alloc_detail 表
     * @param params
     */
    void backupFeedAllocDetail(PondBackupDTO params);
    void deleteFeedAllocDetail(PondBackupDTO params);

    /**
     * 备份 feed_alloc 表
     * @param params
     */
    void backupFeedAlloc(PondBackupDTO params);
    void deleteFeedAlloc(PondBackupDTO params);

    /**
     * 备份 zoo_alloc_detail 表
     * @param params
     */
    void backupZooAllocDetail(PondBackupDTO params);
    void deleteZooAllocDetail(PondBackupDTO params);


    /**
     * 备份 upload_file 表
     * @param params
     */
    void backupUploadFile(PondBackupDTO params);
    void deleteUploadFile(PondBackupDTO params);


    /**
     * 备份 sale_batch 表
     * @param params
     */
    void backupSaleBatch(PondBackupDTO params);
    void deleteSaleBatch(PondBackupDTO params);


    /**
     * 备份 sale_batch_detail 表
     * @param params
     */
    void backupSaleBatchDetail(PondBackupDTO params);
    void deleteSaleBatchDetail(PondBackupDTO params);

    /**
     * 备份 feed_alloc_check 表
     * @param params
     */
    void backupFeedAllocCheck(PondBackupDTO params);
    void deleteFeedAllocCheck(PondBackupDTO params);

}
